package com.stus.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Service;

/**
 * Created by Alias on 2016/4/11.
 */
@Service
@Aspect
public class AspectDemo {
//
//    @Pointcut("execution(* com.stus.DoTo.DoPrint(..))")
//    public void aspectDemo(){}
//
//    @Before("aspectDemo()")
//    public void beforeAspect(){
//        System.out.println("++++++++++++++++++");
//    }
//    @Around("aspectDemo()")
//    public Object aroundAspect(ProceedingJoinPoint pjp) throws Throwable {
//        Object result = pjp.proceed();
//        System.out.println("-------------------");
//        System.out.println("aroundAspect");
//        return result;
//    }
}
